<?php

declare(strict_types=1);
/**
 * 路由表
 */
use Hyperf\HttpServer\Router\Router;

// Websocket服务地址1
Router::addServer('ws', function () {
    Router::get('/', 'App\Controller\WebSocketController');
});

Router::addRoute(['GET'], '/', 'App\Controller\IndexController@index');

Router::get('/favicon.ico', function () {
    return '';
});
